package net.xo68.destiny.manager.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;



/** 
 * JobDetail 实体
 * @author wuxie(16349023@qq.com)
 * @date 2020年12月21日 21:43:52
 *
 */
@ApiModel("JobDetail 实体")
public class JobDetail implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	/**
	 * 任务编号
	 */
	@ApiModelProperty("任务编号")
	private Long jobId;
	/**
	 * 任务名称
	 */
	@ApiModelProperty("任务名称")
	private String jobName;
	/**
	 * 工作组英文名称
	 */
	@ApiModelProperty("工作组英文名称")
	private String workGroup;
	/**
	 * 任务描述
	 */
	@ApiModelProperty("任务描述")
	private String jobDescription;

	/**
	 * 任务状态，0-停止，1-启动
	 */
	@ApiModelProperty("任务状态，0-停止，1-启动")
	private Byte jobState;
	/**
	 * 调度类型，0-周期性调度，1-持续性调度
	 */
	@ApiModelProperty("调度类型，0-周期性调度，1-持续性调度")
	private Byte schedType;
	/**
	 * 任务类型：0-简单任务
	 */
	@ApiModelProperty("任务类型：0-简单任务")
	private Byte jobType;
	/**
	 * 任务handler英文名称
	 */
	@ApiModelProperty("任务handler英文名称")
	private String jobHandler;
	/**
	 * 更新时间
	 */
	@ApiModelProperty("更新时间")
	private Date updateTime;
	/**
	 * 操作员编号
	 */
	@ApiModelProperty("操作员编号")
	private Long operator;
	/**
	 * 操作员昵称
	 */
	@ApiModelProperty("操作员昵称")
	private String operatorNice;
	/**
	 * 任务工作节点路由策略
	 */
	@ApiModelProperty("任务工作节点路由策略")
	private String workerRouteStrategy;
	/**
	 * 工作节点执行模式：阻塞、丢弃
	 */
	@ApiModelProperty("工作节点执行模式：阻塞、丢弃")
	private String workerExecuteMode;
	/**
	 * 重试次数
	 */
	@ApiModelProperty("重试次数")
	private Integer retryCount;
	/**
	 * 执行超时时间，单位：秒
	 */
	@ApiModelProperty("执行超时时间，单位：秒")
	private Long executeTimeout;
	/**
	 * 最后一次执行状态，状态：0-初始状态，1-调度成功，2-调度失败，3-执行成功，4-执行失败
	 */
	@ApiModelProperty("最后一次执行状态，状态：0-初始状态，1-调度成功，2-调度失败，3-执行成功，4-执行失败")
	private Byte lastExecuteState;
	
	@Override
	public String toString(){
		return "jobId:"+this.jobId+","+"jobName:"+this.jobName+","+"workGroup:"+this.workGroup+","+"jobDescription:"+this.jobDescription+","+"jobType:"+this.jobType+","+"jobHandler:"+this.jobHandler+","+"updateTime:"+this.updateTime+","+"operator:"+this.operator+","+"operatorNice:"+this.operatorNice+","+"workerRouteStrategy:"+this.workerRouteStrategy+","+"workerExecuteMode:"+this.workerExecuteMode+","+"retryCount:"+this.retryCount+","+"executeTimeout:"+this.executeTimeout+","+"lastExecuteState:"+this.lastExecuteState;
	}
	

	public Long getJobId() {
		return this.jobId;
	}
	public void setJobId(Long value) {
		this.jobId = value;
	}	

	public String getJobName() {
		return this.jobName;
	}
	public void setJobName(String value) {
		this.jobName = value;
	}	

	public String getWorkGroup() {
		return this.workGroup;
	}
	public void setWorkGroup(String value) {
		this.workGroup = value;
	}	

	public String getJobDescription() {
		return this.jobDescription;
	}
	public void setJobDescription(String value) {
		this.jobDescription = value;
	}




	public Byte getJobState() {
		return jobState;
	}

	public void setJobState(Byte jobState) {
		this.jobState = jobState;
	}

	public Byte getSchedType() {
		return schedType;
	}

	public void setSchedType(Byte schedType) {
		this.schedType = schedType;
	}

	public Byte getJobType() {
		return this.jobType;
	}
	public void setJobType(Byte value) {
		this.jobType = value;
	}	

	public String getJobHandler() {
		return this.jobHandler;
	}
	public void setJobHandler(String value) {
		this.jobHandler = value;
	}	

	public Date getUpdateTime() {
		return this.updateTime;
	}
	public void setUpdateTime(Date value) {
		this.updateTime = value;
	}	

	public Long getOperator() {
		return this.operator;
	}
	public void setOperator(Long value) {
		this.operator = value;
	}	

	public String getOperatorNice() {
		return this.operatorNice;
	}
	public void setOperatorNice(String value) {
		this.operatorNice = value;
	}	

	public String getWorkerRouteStrategy() {
		return this.workerRouteStrategy;
	}
	public void setWorkerRouteStrategy(String value) {
		this.workerRouteStrategy = value;
	}	

	public String getWorkerExecuteMode() {
		return this.workerExecuteMode;
	}
	public void setWorkerExecuteMode(String value) {
		this.workerExecuteMode = value;
	}	

	public Integer getRetryCount() {
		return this.retryCount;
	}
	public void setRetryCount(Integer value) {
		this.retryCount = value;
	}	

	public Long getExecuteTimeout() {
		return this.executeTimeout;
	}
	public void setExecuteTimeout(Long value) {
		this.executeTimeout = value;
	}	

	public Byte getLastExecuteState() {
		return this.lastExecuteState;
	}
	public void setLastExecuteState(Byte value) {
		this.lastExecuteState = value;
	}	
}